import { NATIVE_CLASS } from "@common/constants";
import { asyncCallNativeFunc } from "@common/saga-helper";
import { SET_MOVE_DIRECTLY_DATA_LIST } from "./action-types";

export const loadMoveDirectlyDataList = async (params) => {
  await asyncCallNativeFunc({
    effects: [
      {
        payload: {
          classFullName: NATIVE_CLASS.MoveDirectlyHandler,
          action: "loadScrollData",
          needNonce: false,
          params,
        },
        respActions: [SET_MOVE_DIRECTLY_DATA_LIST],
        callback: params.callback,
      },
    ],
  });
};


